const axios = require('axios')
const baseURL = 'http://localhost:3000'

// 获取订单列表
export async function getOrderList (params) {
  console.log('获取商品列表数据')
  console.log(params)
  return await axios({
    method: 'post',
    url: baseURL + '/api/getOrderList',
    data: {
      ...params
    }
  })
}

// 获取订单列表
export async function addressEdit (params) {
  console.log('订单地址修改')
  console.log(params)
  return await axios({
    method: 'post',
    url: baseURL + '/api/addressEdit',
    data: {
      ...params
    }
  })
}

// 修改订单价格
export async function updateOrderPrice (params) {
  console.log('订单地址修改')
  console.log(params)
  return await axios({
    method: 'post',
    url: baseURL + '/api/updateOrderPrice',
    data: {
      ...params
    }
  })
}

// 修改订单价格
export async function updateOrderSendGoods (params) {
  console.log('订单地址修改')
  console.log(params)
  return await axios({
    method: 'post',
    url: baseURL + '/api/updateOrderSendGoods',
    data: {
      ...params
    }
  })
}
